<template>
  <One v-if="!isOne" />
  <Many v-else />
</template>

<script setup name="MerchantInvoice">
import One from './one.vue';
import Many from './many.vue';
import { getIsAdmin } from "@/api/system/user";
import { getIsManage } from "@/api/system/user";

const isOne = ref(true);//是单条还是多条

/** 获取是单条还是多条 */
function init() {
  // getIsAdmin().then(response => {
  //   console.log("---------" , response)
  //   isOne.value = response;
  // });
  getIsManage().then(response => {
    console.log("---------" , response)
    isOne.value = response;
  });


}

init();
</script>
